using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;

namespace Fated.Character {
    public static class ClassMngr {
        private const string CLASSFOLDER = "Classes\\";
        private static ContentManager content;
        private static Dictionary<string, CharacterClassData> data;
        public static void initialize(ContentManager cM) {
            data = new Dictionary<string, CharacterClassData>();
            content = cM;
        }
        public static void loadCharacterClass(string name) {
            if (data.ContainsKey(name)) return;
            data.Add(name, content.Load<CharacterClassData>(CLASSFOLDER + name));
        }

        public static float getHealth(string name) {
            return data[name].Health;
        }
        public static float getMagic(string name) {
            return data[name].Magic;
        }
        public static float getBody(string name) {
            return data[name].Body;
        }
        public static float getMind(string name) {
            return data[name].Mind;
        }
        public static float getSpirit(string name) {
            return data[name].Spirit;
        }
        public static float getSocial(string name) {
            return data[name].Social;
        }
        public static float getSpeed(string name) {
            return data[name].Speed;
        }

        public static List<Ability> getMoveset(string name) {
            return data[name].moveset;
        }
    }
}
